package com.eternal.org.service;

import com.eternal.org.entity.OrganizeInfo;
import com.baomidou.mybatisplus.service.IService;
import com.eternal.permission.entity.PermissionInfo;
import com.eternal.util.tree.entity.Tree;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 基础组织机构表 服务类
 * </p>
 *
 * @author Eternal
 * @since 2018-10-28
 */
public interface OrganizeInfoService extends IService<OrganizeInfo> {

    /**
     * <p>  获取权限树 </p>
     *
     * @Description: TODO
     * @Param
     * @Return
     * @Author Eternal
     * @Date 2018/10/28 17:13
     */
    List<Tree<OrganizeInfo>> getOrganizeTree();

    /**
     * <p>  获取权限树，并展开该及树  </p>
     *
     * @Description: TODO
     * @Param
     * @Return
     * @Author Eternal
     * @Date 2018/10/28 17:16
     */
    List<Tree<OrganizeInfo>> getOrganizeTree(String orgId);


    /**
     * <p>  根据组织名称查询树 </p>
     *
     * @Description: TODO
     * @Param
     * @Return
     * @Author Eternal
     * @Date 2018/11/6 20:54
     */
    List<Tree<OrganizeInfo>> getOrganizeTreeLikeName(String orgName);

    /**
     * <p>  添加组织信息 </p>
     *
     * @Description: TODO
     * @Param
     * @Return
     * @Author Eternal
     * @Date 2018/11/3 15:53
     */
    boolean saveOrgnizeInfo(OrganizeInfo organizeInfo);

    /**
     * <p>  导入组织信息 </p>
     *
     * @Description: TODO
     * @Param
     * @Return
     * @Author Eternal
     * @Date 2018/11/3 15:53
     */
    boolean importExcelOrg(MultipartFile file);
}
